package innerclasses;

public class Parcel6 {
    private void internelTracking(boolean b){
        if(b){
            class TrackingSlip{
                private String id;

                public TrackingSlip(String s) {
                    this.id = s;
                }
                String getSlip(){
                    return id;
                }
            }
            TrackingSlip ts=new TrackingSlip("slip");
            String s=ts.getSlip();
        }
    }
    public void track(){
        internelTracking(true);
    }
    public static void  main(String[] args){
        Parcel6 p=new Parcel6();
        p.track();
    }
}
